package com.study.writeandreadobj;

import java.io.Serializable;
import java.util.Date;

public class Logginginfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Date logginDate = new Date();
	private String uid;
	private transient String pwd;
	
	public Logginginfo(String user, String password) {
		this.uid = user;
		this.pwd = password;
	}

	@Override
	public String toString() {
		String passString = null;
		passString = pwd;
		
		if(pwd == null){
			passString = "NOT SET";
		}
		
		return "loggin info:\n " + "user:" + uid +
				"\n loggin date:" + logginDate.toString() + 
				"\n password:" + passString;
	}
}
